﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CustomUploadHandler : System.Web.UI.Page
{
    /// <summary>
    /// Upload Event of the jupload.net control
    /// </summary>
    /// <param name="sender">The source of the event</param>
    /// <param name="e">The event arguments</param>
    protected void JUpload1_Upload(object sender, EventArgs e)
    {
        if (JUpload1.HasFiles)
        {
            JUpload1.SaveAllFilesToFolder(Server.MapPath("~/Upload/"));
        }
    }
}